<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="bootstrap-3.3.7-dist/css/bootstrap.css"/>
<script src="js/jquery-1.11.3.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/layer/layer.js" type="text/javascript" charset="utf-8"></script>  
</head>
<body style="background-image: url('img/beijing.jpg');">
	<form action="${pageContext.request.contextPath}/user?method=login" method="post">
		<table cellpadding="6px" align="center" style="margin-top: 200px;">
			<tr>
				<td style="color: white;">
					用户名:<br>
				</td>
				<td>
					<input type="text" name="name"/><br>
				</td>
			</tr>
			<tr>
			<td><br></td>
			</tr>
			<tr>
				<td style="color: white;">
					密&nbsp&nbsp&nbsp码:
				</td>
				<td>
					<input type="text" name="password"/><br>
				</td>
			</tr>
						<tr>
			<td><br></td>
			</tr>
			<tr>
				<td style="color: white;">
					验证码:
				</td>
				<td>
					<input type="text" name="checkCode">
				</td>
				<td>
					<img id="imgCodeId" src="${pageContext.request.contextPath }/checkImg" onclick="refreshCode()"><br>
				</td>
			</tr>
						<tr>
			<td><br></td>
			</tr>
			<tr>
				<td>
					<input type="submit" value="登录" class="btn btn-success" ><br>
				</td>
				<td>
					<a href="${pageContext.request.contextPath }/userInsert.jsp" class="btn btn-success">注册</a>
				</td>
			</tr>
		</table>
	</form>
	
</body>
<script src="js/jquery-1.11.3.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	function refreshCode(){
		$("#imgCodeId").attr("src","${pageContext.request.contextPath}/checkImg?"+Math.random());
	}
	
</script>
</html>